using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

public class StartCanvas : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        Transform btnObj = transform.Find("Button_start");
        Button btn = btnObj.GetComponent<Button>();
        btn.onClick.AddListener(delegate ()
        {
            onBtnStartClick(btnObj);
        });
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    void onBtnStartClick(Transform obj)
    {
     
        SceneManager.LoadScene("SampleScene");
    }

}
